<jsp:include page="../template/header.jsp"></jsp:include>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script src="http://code.jquery.com/jquery-latest.js"
	type="text/javascript"></script>

<script type="text/javascript">
	 
</script>
<form class="form-horizontal" method="post">
	<fieldset>

		<legend>Listado de Locales</legend>

		<table class="table table-striped table-bordered table-condensed">
			<thead>
				<tr>
					<th>Local</th>
					<th>Descripcion</th>
					<th>Direccion</th>
					<th>Telefono</th>
					<th>Editar</th>
					<th>Eliminar</th>

				</tr>
			</thead>
			<tbody id="tBodyGrid">
				<c:forEach items="${sessionScope.listLocal}" var="row">
					<tr>
						<td><c:out value="${row.nombre}" /></td>
						<td><c:out value="${row.descripcion}" /></td>
						<td><c:out value="${row.direccion}" /></td>
						<td><c:out value="${row.telefono}" /></td>
						<td><a
							href="<%=request.getContextPath()%>/local/editar.htm?codigoLocal=<c:out value='${row.codigo}'/>">Editar</a>
						</td>
						<td><a
							href="<%=request.getContextPath()%>/local/delete.htm?codigoLocal=<c:out value='${row.codigo}'/>">Eliminar</a>
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<div class="form-actions">
			<a class="btn btn-primary"
				href="<%=request.getContextPath()%>/local/reglocal.htm">Nuevo
				Local</a>
		</div>
	</fieldset>

</form>

<jsp:include page="../template/footer.jsp"></jsp:include>